package ynu.sxp.demoapp.entity;

import jakarta.persistence.*;
import lombok.Data;
import ynu.sxp.demoapp.common.BaseEntity;

import java.math.BigDecimal;

@Data
@Entity
@Table(name = "business")
public class Business extends BaseEntity {
    @Column(length = 40, nullable = false)
    private String businessName;

    @Column(length = 50)
    private String businessAddress;

    @Column(length = 40)
    private String businessExplain;

    @Column(nullable = false)
    private String businessImg;

    @Column(nullable = false)
    private Integer orderTypeId;

    @Column(precision = 5, scale = 2)
    private BigDecimal starPrice; // 修改为 BigDecimal

    @Column(precision = 5, scale = 2)
    private BigDecimal deliveryPrice; // 修改为 BigDecimal

    @Column(length = 40)
    private String remarks;
}